<?php
//	use \Psr\Http\Message\ServerRequestInterface as Request;
//  use \Psr\Http\Message\ResponseInterface as Response;
	$container['notFoundHandler'] = function ($c) {
      return function ($request, $response) use ($c) {
      	//return
       return $response->withRedirect($c->router->pathFor('Error'));
    };
    $c['notAllowedHandler'] = function ($c) {
    return function ($request, $response) use ($c) {
         return $response->withRedirect($c->router->pathFor('Error'));
    };
};
};